#include "person.h"
void Date::Set(int y,int m,int d)
{
    year=y;
    month=m;
    day=d;
}

int Date::GetYear()
{
    return year;
}

int Date::GetMonth()
{
    return month;
}

int Date::GetDay()
{
    return day;
}

Person::Person(string na,string num,char s,int y,int m,int d,string sp,string re, string ac,int ty)
{
    name=na;
    number=num;
    sex=s;
    birthday.Set(y,m,d);
    speciality=sp;
    researchTopic=re;
    academicTitle=ac;
    type=ty;
}

bool Person::operator<(Person ob) const
{
    if(number<ob.number)
    {
        return true;
    }
    else
    {
        return false;
    }
}

string Person::GetName()const
{
    return name;
}

string Person::GetNumber()const
{
    return number;
}

char Person::GetSex()const
{
    return sex;
}

Date Person::GetBirth()const
{
    return birthday;
}

string Person::GetSpec()const
{
    return speciality;
}

string Person::GetResearch()const
{
    return researchTopic;
}

string Person::GetAcademic()const
{
    return academicTitle;
}

int Person::GetType()const
{
    return type;
}
